<?php get_header(); ?>
  <div class="content">
    <div class="wrapper2">
        <ul class="list">
            <?php if (have_posts()) : ?>
            <?php while (have_posts()) : the_post(); ?>
            <?php if($post->post_content != '') { ?>
                    <li>
                        <div class="li_title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
                        <div class="li_cont"><?php the_excerpt(); ?></div>
                        <div class="more"><a href="<?php the_permalink(); ?>">查看全文</a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
                    </li>
            <?php } ?>
            <?php endwhile ?>
            <?php else: ?>
                <li>本分类无文章</li>
            <?php endif ?>
        </ul>
        <ul class="area">
				<?php
					$cats = get_categories("child_of=3");
					foreach($cats as $cat) {
				?>
						<li class="province">
							<div class="name"><?php echo($cat->name); ?></div>
							<div class="city">
					<?php 
						$cities = get_posts('category=' . $cat->term_id);
						foreach($cities as $city) {
							if($city->post_content != '') {
					?>
								<a href="?p=<?php echo($city->ID); ?>"><?php echo($city->post_title); ?>&nbsp;</a>
					<?php
							} else {
					?>
								<?php echo($city->post_title); ?>&nbsp;
					<?php
							}
					?>
					<?php } ?>
						</div>
					</li>
				<?php } ?>
        </ul>
    </div>
  </div><!-- content -->
<?php get_footer(); ?>
